package com.tsinghuabigdata.edu.ddmath.constant;

/**
 * <p>
 * Created by blueto
 * </p>
 *
 * @author blueto
 * @version V1.0
 */

public class AppRequestConst {

    /**
     * 服务器地址
     */
    public static final String RESTFUL_ADDRESS = BaseConfig.RESTFUL_ADDRESS;                                // 多配置打包

    public static final String UPGRADE_APK_HOST = BaseConfig.UPGRADE_APK_ADDRESS;

    /**
     * DNS服务器
     */
    public static final String[] DNS_SERVERS = new String[]{"114.114.114.114"}; //NOSONAR
    /**
     * 是否使用代理
     */
    public static final boolean IS_USE_DNSPROXY = BaseConfig.IS_USE_DNSPROXY;
    /*
     * 日志上传接口
     */
    public static final String LOG_UPLOAD = "/rest/log/trace/file/:plat/";

    /**
     * 登录接口
     * POST /studying/login			（学生）
     * POST /teaching/login			（老师）
     * 参数名	必选	类型及范围	说明
     * loginName	true	String	登录名
     * password	true	String	登录密码
     * deviceId	true	String	设备Id
     * clientType	true	String	客户端类型
     * validCode	true	String	验证码（用户登录失败达到一定次数后需要提供，允许的错误次数由后台配置）
     */
    public static final String POST_LOGIN_STUDENT = "/rest/studying/login";
    //public static final String POST_LOGIN_TEACHER = "/rest/teaching/login";
    public static final String LOGIN_ACCESS = "/rest/upload/config";

    /**
     * 退出登录
     * POST  /studying/v1 /users/logout
     * POST  /teaching/v1/users /logout
     */
    public static final String POST_LOGOUT_STUDENT = "/rest/studying/v1/users/logout";
    /**
     * 注册
     */
    public static final String POST_REGISTER = "/rest/studying/register";
    /**
     * 获取学生班级列表
     */
    public static final String GET_GET_CLASSLIST = "/rest/studying/v1/users/trip/:studentId";

    /**
     * 个人信息补充
     */
    public static final String POST_UPDATE_EXTRA_PERSONINFO = "/rest/studying/personal/supplement";
    /**
     * 学校模糊查询接口
     * GET /studying/schools?schoolName=
     */
    public static final String GET_QUERY_BLURSCHOOL = "/rest/studying/schools";
    /**
     * 获取验证码
     * GET  /studying/captcha?phone=:phone
     */
    public static final String GET_GET_VERIFYCODE = "/rest/studying/captcha";
    /**
     * 重置密码接口
     * POST  /studying /password/reset
     */
    public static final String POST_RESET_PASS = "/rest/studying/password/reset";
    /**
     * 个人基本信息查询接口
     * GET  /studying/v1 /users/{accountId}
     */
    public static final String GET_USER_DETAILINFO = "/rest/studying/v1/users/:accountId";
    /**
     * 个人基本信息编辑接口
     * POST /studying/v1/users/{accountId}/update
     */
    public static final String POST_PERSONINFO_EDIT_UPDATE = "/rest/studying/v1/users/:accountId/update";
    /**
     * 个人头像上传
     * POST  /studying/v1/users/headimage/upload      （学生）
     * POST  /teaching/v1/users/headimage/upload			（老师）
     */
    public static final String POST_HEADIMG_UPLOAD = "/rest/studying/v1/users/headimage/upload";
    /**
     * 4.1.1.6校验手机号是否被使用
     * GET  /studying/verify?phone=:phone
     */
    public static final String GET_PHONENUM_ISUSED = "/rest/studying/verify?";
    /**
     * 绑定手机号
     * post  http://xx.com/rest/studying/cellphone/binding
     */
    public static final String POST_BINDMOBILE = "/rest/studying/cellphone/binding";
    /**
     * 我的学习相关接口
     */

    //4.1	上传作业图片
    //file	True	File	学生上传的作业
    public static final String POST_MYLEARN_UPLOADIMAGE = "/rest/upload/v1/tutorial/images";

    //4.2	提交上传作业信息
    //studentId	true	String	学生ID
    //classId	True	String	Class Id
    //files	True	FileParam[]	本次上传的文件ID
    //path	True	String	图片路径
    //delete	True	Boolean	是否删除
    public static final String POST_MYLEARN_WORKINFO = "/rest/upload/v1/tutorial/images/submit";

    //豆豆作业提交
    public static final String POST_MYLEARN_DDWORKINFO = "/rest/upload/v1/exercise/submit";

    //图片删除
    public static final String POST_MYLEARN_REMOVEIMAGE = "/rest/upload/v1/tutorial/images/remove";

    //4.3	查询拍照题集
    //studentId	true	String	学生ID
    //classId	True	String	班级ID
    //pageNum	True	Int	当前分页
    //pageSize	True	Int	每页记录数
    public static final String GET_MYLEARN_WORKLIST = "/rest/studying/v1/tutorial/records";

    //豆豆作业详情
    public static final String GET_MYLEARN_DDWORK_DETAIL = "/rest/studying/homework/v2/:studentId/detail";

    public static final String GET_MY_COURSE = "/rest/studying/v1/tutorial/records-day";

    public static final String QUERY_CLASS_INFO = "/rest/studying/v1/classes/:classId/students";

    public static final String QUERY_DOUDOU_WORK = "/rest/studying/homework/v2/:studentId/list";

    public static final String QUERY_TEACHER_STATE = "/rest/studying/v1/live/teachers";

    public static final String QUERY_TUTOR_QUEUE = "";

    public static final String APPLY_TUTOR = "/rest/studying/v1/live/coaching";

    public static final String IS_TUTOR_APPLIED = "/rest/studying/v1/live/coach";

    public static final String IS_TUTOR_TURN = "/rest/studying/v1/live/turn";

    public static final String MODIFY_TUTOR_STATE = "/rest/live/v1/coaching/{coachId}";

    public static final String QUERY_UPLOAD_IMAGES = "/rest/studying/v1/tutorial/images";

//    public static final String START_TUTOR = "/rest/live/coach/:coachId/start";
public static final String START_TUTOR = "/rest/studying/v1/live/coach/:coachId/start";
    public static final String END_TUTOR_NORMAL = "/rest/studying/v1/live/coach/:coachId/over";
    public static final String END_TUTOR_EXCEPTION = "/rest/studying/v1/live/coach/:coachId/start";

    /**
     * 豆豆Android app更新
     * GET http://upgrade.iclassedu.com/doudou/upgrade/student/android.json
     */
    public static final String GET_APK_UPDGRADE = "/doudou/upgrade/student/android.json";
}
